<?php

class Chuyen_muc_bai_viet extends Eloquent {
	public $timestamps = false;
	protected $guarded = array();
	protected $table = 'chuyen_muc_bai_viets';
	public static $rules = array(
		'ten_chuyen_muc' => array('required','min:5','unique:chuyen_muc_bai_viets')
	);
	protected $fillable = array('ten_chuyen_muc');

	public function getAllchuyenmuc()
	{
		$results = DB::table('chuyen_muc_bai_viets')->get();
		return $results;
	}
}